﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Backend/Backend.Master" Inherits="System.Web.Mvc.ViewPage<IntroduceCompany.AlbumView>" %>
<%@Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor"%>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	AlbumCreate
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<script type="text/javascript" src="<%= Url.Content("../../../Content/Backend/js/ckeditor/ckeditor.js")%>"></script>
<!-- Begin one column tab content window -->
    <div class="onecolumn">
        <div class="header">
            <span>Thêm Album mới</span>
            <div class="switchbutton">
                <%= Html.ActionLink("Danh sách", "AlbumList", "Album",null, new { @class = "button" })%>
            </div>
        </div>
        <br class="clear" />
        <div class="content">
            <% using (Html.BeginForm("AlbumCreate", "Album", FormMethod.Post, new { enctype = "multipart/form-data" })) {%>
                <%= Html.AntiForgeryToken(IntroduceCompany.Util.AntiKey.EditSalt)%>
                <%= Html.ValidationSummary(true) %>
            <div class="display-label error">
                <div class="errorcontent">
                    <p><%= Html.ValidationMessageFor(model => model.AlbumTitle) %></p>
                </div>
            </div>
            
            <div>
                <div class="editor_left">
                    <label>Ngôn ngữ:</label><br />
                    <%= Html.DropDownListFor(model => model.LanguageID, (SelectList)ViewData["LaguageList"], new { @style="width:300px;"})%>
                </div>
                <div class="editor_middle">
                    <label>Ảnh đại diện:</label><br />
                    <input name="uploadFile" id="uploadFile" type="file" />
                </div>
            </div><br class="clear"/><br />
            <div>
                <label>Tên album:</label><br />
                <%= Html.TextBoxFor(model => model.AlbumTitle, new { @style="width:620px;", maxlength = "500" })%>
            </div><br class="clear"/><br />
            <div>
                <label>Mô tả album:</label><br />
                <%= Html.TextAreaFor(model => model.AlbumDescription, new { @class = "ckeditor" })%>
            </div><br class="clear"/>
            
            <p>
                <input type="submit" value="Create" />
            </p>
        
            <script type="text/javascript">
                CKEDITOR.replace('AlbumDescription', {
                    BasePath: '../../../Content/Backend/js/ckeditor/',
                    customConfig: 'CustomAdmin.js'
                });
	        </script>
        <% } %>
        </div>
    </div>
</asp:Content>

